diff --git a/modules/fdlibm/src/fdlibm.h b/modules/fdlibm/src/fdlibm.h
--- a/modules/fdlibm/src/fdlibm.h
+++ b/modules/fdlibm/src/fdlibm.h
@@ -12,16 +12,18 @@
 /*
  * from: @(#)fdlibm.h 5.1 93/09/24
  * $FreeBSD$
  */
 
 #ifndef mozilla_imported_fdlibm_h
 #define mozilla_imported_fdlibm_h
 
+namespace fdlibm {
+
 double	acos(double);
 double	asin(double);
 double	atan(double);
 double	atan2(double, double);
 
 double	cosh(double);
 double	sinh(double);
 double	tanh(double);
@@ -52,9 +54,11 @@ double	scalbn(double, int);
 
 float	ceilf(float);
 float	floorf(float);
 
 float	nearbyintf(float);
 float	rintf(float);
 float	truncf(float);
 
+} /* namespace fdlibm */
+
 #endif /* mozilla_imported_fdlibm_h */
